/**
 * @copyright Copyright (c) 2025 
 * CSG Digital Grid Technology (Guangdong) Co., Ltd.
 * @author xxxcsg
 */

 
#ifndef DEV_UTIL_H
#define DEV_UTIL_H

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */

#define DEV_INFO_ID                 "const.product.ID"
#define DEV_INFO_NAME               "const.ohos.fullname"
#define DEV_INFO_VERSION            "const.product.software.version"
#define DEV_INFO_VERSION_ID         "const.product.firstapiversion"
#define DEV_INFO_PRETTY_NAME        "const.product.prettyname"
#define DEV_INFO_DISTRO_CODE_NAME   "const.product.distro.codename"
#define DEV_INFO_BOARD              "const.product.hardwareversion"
#define DEV_INFO_FIRMWARE_VERSION   "const.product.firmware.version"
#define DEV_INFO_IPC_VERSION        "const.product.ipc.version"
#define DEV_INFO_ESN                "const.product.esn"
#define DEV_INFO_DEVICE_TYPE        "const.product.device.type"
#define DEV_INFO_MAC                "const.product.mac"

double get_cpu_temperture(void);
int get_cpu_freq(void);
int get_chip_id(char* outStr, size_t outLen);

// int get_os_full_name(char* outStr, size_t outLen);

// int get_os_display_version(char* outStr, size_t outLen);

// void to_hex(char *src, int len, char *dst);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif